package cn.star.jots.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    SUCCESS(2000, "OK"),
    LOGIN_SUCCESS(2001, "登录成功"),
    OPERATION_SUCCESS(2002, "操作成功"),

    NOT_LOGIN(4000, "未登录"),
    PASSWORD_ERROR(4002, "工号或密码错误"),
    JOB_NUMBER_ERROR(4003, "工号或密码错误"),
    PHONE_ERROR(4004, "手机号或密码错误"),
    PASSWORD_PHONE_ERROR(4005, "手机号或密码错误"),
    STATUS_ERROR(4005, "用户状态错误"),
    PHONE_EXIST(4006, "手机号已存在"),
    OLD_PASSWORD_ERROR(4007, "旧密码错误"),
    USER_NOT_EXIST(4008, "用户不存在"),
    EMAIL_EXIST(4009, "邮箱已存在"),
    NEW_OLD_PASSWORD_ERROR(4010, "新旧密码不能相同"),

    OPERATION_FAILED(5001, "操作失败"),
    VALIDATE_ERROR(5002, "请求参数错误"),
    USERNAME_ALREADY_EXISTS(5003, "用户名已存在"),
    DATA_UN_EXISTS(5004, "请求数据不存在"),
    IDNUMBER_EXIST(5005, "身份证号错误");

    //状态码、状态码描述
    private Integer code;
    private String msg;
}